<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <!--火狐和IE都兼容-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <!--苹果手机是否全屏-->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!--手机置顶的状态栏-->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>HappyBirthday</title>
    <link rel="stylesheet" href="css/login.css">
</head>

<body>
    <embed src="html/shengri.mp3" hidden="true" autostart="true" loop="true">
    <div class="logo">
        <img src="images/logo.png" />
    </div>
    <div class="conx">
        <form>
            <label for="name">
                Name：
                <input type="text" id="name" placeholder="请输入姓名">
            </label>
            <label for="passford">
                Password：
                <input type="passford" id="passford" placeholder="请输入密码">
            </label>
            <p>
                <a id="Login">Login</a>
            </p>
        </form>
    </div>


</body>
<script src="js/jquery-1.2.6.min.js"></script>

<script>
$("#Login").click(function(){
    var name = $('#name').val();
    var pass = $('#passford').val();
    if( name == 'Jiao Xiangling' && pass == "Li Chuangchuang" ){
         window.location.href = "./html/love";
    }else{
        console.log("失败");
    }
})
</script>

</html>